MemoryStats

data class MemoryStats(val storages: List<MemoryStats.Usage>) : Parcelable

MemoryStats contains a summary of the current RAM usage as well as a list of storage devices with their corresponding usage data.

Constructors

Link copied to clipboard
constructor(storages: List<MemoryStats.Usage>)

Types

Link copied to clipboard

DefaultStorageName represents predefined storage device names.

Link copied to clipboard

MemoryStatsUnit represents different units of memory measurement.

Link copied to clipboard
data class Usage(val name: String, val used: Float, val free: Float, val total: Float, val buffer: Float = 0.0f, val cache: Float = 0.0f, val unit: MemoryStats.MemoryStatsUnit = MemoryStatsUnit.MB) : Parcelable

Usage contains usage information for a storage device.

Properties

Link copied to clipboard

A list containing the usage information for each storage device connected to the device, including their names and usage statistics.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)